package fu.capstone.hanoicityguide.business.bo.cyclo;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.Cyclo;
import fu.capstone.hanoicityguide.dataaccess.cyclo.CycloDAO;
import fu.capstone.hanoicityguide.dataaccess.cyclo.CycloDAOImp;

public class CycloBOImp implements CycloBO {

	private Context context;
	private CycloDAO dao;

	public Context getContext() {
		return context;
	}

	public void setContext(Context ctx) {
		this.context = ctx;
	}

	public CycloBOImp(Context ctx) {
		this.context = ctx;
		dao = new CycloDAOImp(context);
	}

	@Override
	public ArrayList<Cyclo> listCyclo(String filter, String sorter) {
		// TODO Auto-generated method stub
		ArrayList<Cyclo> arrCyclo = dao.listCyclo(filter, sorter);
		return arrCyclo;
	}

	@Override
	public ArrayList<Cyclo> searchCyclo(String filter, String sorter,
			String keyWord) {
		// TODO Auto-generated method stub
		return null;
	}

}
